package com.suo.spring.test;

import com.suo.spring.ApplicationContext;
import com.suo.spring.annotation.Autowired;
import com.suo.spring.annotation.Component;

@Component
public class Controller {

    @Autowired
    private static Service service;

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ApplicationContext(Config.class);
        System.out.println("Controller将要调用service方法");
        service.service();
    }
}
